const ROOT_PATH = __dirname;

const BLOG_DIR = ROOT_PATH + '/post';
const DEPLOY_DIR = ROOT_PATH + '/deploy';

const server = {
  port: 4000
};

const style = {
  post: {
    source: ROOT_PATH + '/resource/style/post.scss',
    target: DEPLOY_DIR + '/css/post.css'
  }
};

const site = {
  title: '行一的博客',
  nav: [{ title: '标签', link: '/tags.html' }],
  logo: {
    img: 'https://thirdwx.qlogo.cn/mmopen/vi_32/0yclIAL2K7bw4YcBDF2F5iadvwlIMoBmcTdHibxiao7GTUkbMmPiaqSial9nl6nBUoCnMa2IJorm8libBYt6Q9lsvFEQ/132',
    link: '/index.html'
  },
  analysis: '<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1278559823&web_id=1278559823"></script>'
};

module.exports = {
  /**
   * 项目根目录
   */
  rootDir: ROOT_PATH,
  /**
   * 缓存信息文件
   */
  dbPath: ROOT_PATH + '/.db.json',
  /**
   * 模板文件目录
   */
  templateDir: ROOT_PATH + '/resource/template',
  /**
   * 资源目录
   */
  resourceDir: ROOT_PATH + '/resource',
  /**
   * 文章文件目录
   */
  blogDir: BLOG_DIR,
  /**
   * 部署目录
   */
  deployDir: DEPLOY_DIR,
  /**
   * CNAME 文件内容
   */
  cname: 'blog.xyzwps.com',
  server,
  site,
  style
};
